package 注解;

/**
 * @author:谢君臣
 * @Date:2021/8/9-14:45
 * @version:1.0
 * @function:
 */
public class TestClassLoad {
    public static void main(String[] args) {
        ClassLoader classLoader = TestClassLoad.class.getClassLoader();
        System.out.println("-----------------------");
        System.out.println(classLoader);
        System.out.println("-----------------------");
        ClassLoader parent = classLoader.getParent();
        System.out.println(parent);
        System.out.println("-----------------------");
        System.out.println(parent.getParent());
        System.out.println("-----------getSystemClassLoader == AppClassLoad------------");
        System.out.println(ClassLoader.getSystemClassLoader());
    }

}
